package com.tzy.jvmtest;

public class GcRootDemo {

    private byte[] byteArray = new byte[100 * 1024 * 1024];//100MB ( 1024b*1024*100 )

    //private static GCrootDemo2 t2;
//private static final GCrootDemo3 t3 = new GCrootDemo3();
    public static void m1() {
        GcRootDemo t1 = new GcRootDemo();
        System.gc();
        System.out.println("第一次GC完成");
    }

    public static void main(String[] args) {
        m1();
    }


}
